<!doctype html>
<html lang="ru" data-bs-theme="dark">

<head>
    <!-- 2024-05-10 12:26:31 -->
        <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>git receive-pack</title>
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/css/bootstrap.min.css" integrity="sha512-jnSuA4Ss2PkkikSOLtYs8BlYIeeIK1h99ty4YfvRPAlzr377vr3CXDb7sb7eEEBYjDtcYj+AjBH3FLv5uSJuXg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.11.3/font/bootstrap-icons.min.css" integrity="sha512-dPXYcDub/aeb08c63jRq/k6GaKccl256JQy/AnOq7CAnEZ9FzSL9wSbcZkMp4R26vBsMLFYH4kQ67/bbV8XaCQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github-dark.min.css" integrity="sha512-rO+olRTkcf304DQBxSWxln8JXCzTHlKnIdnMUwYvQa9/Jd4cQaNkItIUj6Z4nvW1dqK0SKXLbn9h4KwZTNtAyw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/7.1.0/css/flag-icons.min.css" integrity="sha512-bZBu2H0+FGFz/stDN/L0k8J0G8qVsAL0ht1qg5kTwtAheiXwiRKyCq1frwfbSFSJN3jooR5kauE0YjtPzhZtJQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link href="../../../runebook.css" rel="stylesheet" type="text/css">
    <meta name="x-github" content="https://github.com/runebookdev/runebook">
            <meta name="x-i18n-doc" content="git">
        <script>
        function i18n(element) {
            // NOP
        }
    </script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/js-cookie/3.0.5/js.cookie.js" integrity="sha512-F/dia2jKME12jwqiYDayeD+Rr/8jTWUD2wfbuJB0bzSwenSEnXsn4qQ/wVyXUCix5bmCAj8xJdtFr2OqUtjLAw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/js/bootstrap.bundle.min.js" integrity="sha512-7Pi/otdlbbCR+LnW+F7PwFcSDJOuUJB3OxtEHbg4vSMvzvJjde4Po1v4BR9Gdc9aXNUNFVUY+SK51wWT8WF0Gg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/7.8.1/rxjs.umd.min.js" integrity="sha512-D9LDs8YUUVa4V9Gl4Zb+xqRAc7RCzooR3+zzebgK2RMu/KU+dh90pbjEEMzPiSyRSGbSp9j1pZnrO4joGa5WEg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/jquery.mark.min.js" integrity="sha512-mhbv5DqBMgrWL+32MmsDOt/OAvqr/cHimk6B8y/bx/xS88MVkYGPiVv2ixKVrkywF2qHplNRUvFsAHUdxZ3Krg==" crossorigin="anonymous"></script>
    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6424571640879890" crossorigin="anonymous"></script>    <script async src="https://www.googletagmanager.com/gtag/js?id=G-3G5BZ1QEDP"></script>
<script>
    window.dataLayer = window.dataLayer || [];

    function gtag() {
        dataLayer.push(arguments);
    }

    gtag('js', new Date());
    gtag('config', 'G-3G5BZ1QEDP');
</script>    <script>
(function(c, l, a, r, i, t, y) {
    c[a] = c[a] || function() {
        (c[a].q = c[a].q || []).push(arguments)
    };
    t = l.createElement(r);
    t.async = 1;
    t.src = "https://www.clarity.ms/tag/" + i + "?ref=bwt";
    y = l.getElementsByTagName(r)[0];
    y.parentNode.insertBefore(t, y);
})(window, document, "clarity", "script", "jto2hd94r9");
</script>    <script src="../../../theme.js"></script>
</head>

<body>
    <header class="bg-black">
        <div class="container">
            <div class="row">
                <div class="col">
                    <nav class="navbar navbar-expand-lg navbar-dark">
                        <a class="navbar-brand fw-bold" href="https://runebook.dev/ru">
                            <img alt="Runebook.dev" class="d-inline-block align-top mr-1" src="../../../assets/runebook_logo.webp" width="24" height="24">
                            Runebook.dev
                        </a>
                        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                            <span class="navbar-toggler-icon"></span>
                        </button>
                        <div class="collapse navbar-collapse" id="navbarSupportedContent">
                            <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                                <li class="nav-item">
                                    <a class="nav-link" href="https://runebook.dev/ru#docs">Documentation</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="https://runebook.dev/contributors">Contributors</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="https://github.com/runebookdev/runebook/issues">GitHub</a>
                                </li>
                            </ul>
                                                                                                <button class="btn btn-success ms-2" id="showPopupButton">
                                        <i class="bi bi-translate"></i>
                                        Show English
                                    </button>
                                                                                        <div class="form-check form-switch ms-3">
                                <label class="text-light">
                                    <input class="form-check-input" type="checkbox" role="switch" id="theme-switch" checked>
                                    <i class="bi bi-moon-stars-fill"></i>
                                </label>
                            </div>
                        </div>
                    </nav>
                </div>
            </div>
        </div>
    </header>

    <!--sse-->
    <div class="container">
    <div class="row">
        <div class="col">
            <nav aria-label="breadcrumb" class="mt-2">
                <ol class="breadcrumb mb-1">
                    <li class="breadcrumb-item">
                        <a href="https://runebook.dev/ru#docs">
                            <span class="fi fi-ru"></span>                            Русский                        </a>
                    </li>
                    <li class="breadcrumb-item">
                        <a href="-index-.html">
                            Git                            2.43                        </a>
                    </li>
                                            <li class="breadcrumb-item">
                            <a href="-index-.html#Git">
                                Git                            </a>
                        </li>
                                    </ol>
            </nav>
        </div>
    </div>
    <br>

    <div class="row">
        <div class="col-md-9">
            <main>
                <article>

                    
                    <h1 class="text-body-emphasis" ><span data-i18n="31b7cb3e0cc67bda0e27b61bd396cf26b6026edbe9965bd06254e2e0bee85f3b/c1" data-source="git-receive-pack" onmousemove="i18n(this)">git-receive-pack</span></h1> <h2 class="text-body-emphasis"  id="_name"><span data-i18n="dcd1d5223f73b3a965c07e3ff5dbee3eedcfedb806686a05b9b3868a2c3d6d50/3a" data-source="Name" onmousemove="i18n(this)">Name</span></h2> <div> <p><span data-i18n="31237cea7b378d2182d7b015ed2d6e5d23d8988c2bfac7ddcd37525443149bb2/5d" data-source="git-receive-pack - Receive what is pushed into the repository" onmousemove="i18n(this)">git-receive-pack &mdash; &pcy;&ocy;&lcy;&ucy;&chcy;&icy;&tcy;&softcy; &tcy;&ocy;, &chcy;&tcy;&ocy; &pcy;&ocy;&mcy;&iecy;&shchcy;&iecy;&ncy;&ocy; &vcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&jcy;</span></p> </div> <h2 class="text-body-emphasis"  id="_synopsis"><span data-i18n="8eb3755381519d7f0479d75446e56e20084834c0460d7ec94926932372ea6c47/0d" data-source="Synopsis" onmousemove="i18n(this)">Synopsis</span></h2> <div> <div> <pre class="hljs language-xml">git receive-pack <span class="hljs-tag">&lt;<span class="hljs-name">git-dir</span>&gt;</span></pre> </div> </div> <h2 class="text-body-emphasis"  id="_description"><span data-i18n="526e0087cc3f254d9f86f6c7d8e23d954c4dfda2b312efc29194ae8a860106ba/d3" data-source="Description" onmousemove="i18n(this)">Description</span></h2> <div> <p><span data-i18n="2a5315f06ba26e31a8347c60faea537a1a953a804fa60a71efa466349b48f226/32" data-source="Invoked by &lt;code&gt;git send-pack&lt;/code&gt; and updates the repository with the information fed from the remote end." onmousemove="i18n(this)">&Vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy;  <code>git send-pack</code>  &icy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&yacy;&iecy;&tcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&jcy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&iecy;&jcy;, &pcy;&ocy;&scy;&tcy;&ucy;&pcy;&acy;&yucy;&shchcy;&iecy;&jcy; &scy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &kcy;&ocy;&ncy;&tscy;&acy;.</span></p> <p><span data-i18n="eb62d2e8fa38c1c83175d79e5fac3049674688c2dc4059644c747607074acccd/d8" data-source="This command is usually not invoked directly by the end user. The UI for the protocol is on the &lt;code&gt;git send-pack&lt;/code&gt; side, and the program pair is meant to be used to push updates to a remote repository. For pull operations, see &lt;a href=&quot;git-fetch-pack&quot;&gt;git-fetch-pack[1]&lt;/a&gt;." onmousemove="i18n(this)">&Ecy;&tcy;&acy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy; &ocy;&bcy;&ycy;&chcy;&ncy;&ocy; &ncy;&iecy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &kcy;&ocy;&ncy;&iecy;&chcy;&ncy;&ycy;&mcy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&iecy;&mcy; &ncy;&acy;&pcy;&rcy;&yacy;&mcy;&ucy;&yucy;. &Pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&softcy;&scy;&kcy;&icy;&jcy; &icy;&ncy;&tcy;&iecy;&rcy;&fcy;&iecy;&jcy;&scy; &pcy;&rcy;&ocy;&tcy;&ocy;&kcy;&ocy;&lcy;&acy; &ncy;&acy;&khcy;&ocy;&dcy;&icy;&tcy;&scy;&yacy; &ncy;&acy; &scy;&tcy;&ocy;&rcy;&ocy;&ncy;&iecy;  <code>git send-pack</code> , &icy; &ecy;&tcy;&acy; &pcy;&acy;&rcy;&acy; &pcy;&rcy;&ocy;&gcy;&rcy;&acy;&mcy;&mcy; &pcy;&rcy;&iecy;&dcy;&ncy;&acy;&zcy;&ncy;&acy;&chcy;&iecy;&ncy;&acy; &dcy;&lcy;&yacy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&kcy;&icy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&jcy; &vcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ycy;&jcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&jcy;. &Icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&yucy; &ocy;&bcy; &ocy;&pcy;&iecy;&rcy;&acy;&tscy;&icy;&yacy;&khcy; &icy;&zcy;&vcy;&lcy;&iecy;&chcy;&iecy;&ncy;&icy;&yacy; &scy;&mcy;. &vcy;  <a href="git-fetch-pack.html">git-fetch-pack[1]</a> .</span></p> <p><span data-i18n="8efd0e92316f46ddc5d6619ebd982a97140b156fb43fa18b82d8a9fd8f30e792/f9" data-source="The command allows for the creation and fast-forwarding of sha1 refs (heads/tags) on the remote end (strictly speaking, it is the local end &lt;code&gt;git-receive-pack&lt;/code&gt; runs, but to the user who is sitting at the send-pack end, it is updating the remote. Confused?)" onmousemove="i18n(this)">&Kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy; &pcy;&ocy;&zcy;&vcy;&ocy;&lcy;&yacy;&iecy;&tcy; &scy;&ocy;&zcy;&dcy;&acy;&vcy;&acy;&tcy;&softcy; &icy; &bcy;&ycy;&scy;&tcy;&rcy;&ocy; &pcy;&iecy;&rcy;&iecy;&scy;&ycy;&lcy;&acy;&tcy;&softcy; &scy;&scy;&ycy;&lcy;&kcy;&icy; sha1 (&zcy;&acy;&gcy;&ocy;&lcy;&ocy;&vcy;&kcy;&icy;/&tcy;&iecy;&gcy;&icy;) &ncy;&acy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ocy;&mcy; &kcy;&ocy;&ncy;&tscy;&iecy; (&scy;&tcy;&rcy;&ocy;&gcy;&ocy; &gcy;&ocy;&vcy;&ocy;&rcy;&yacy;, &ecy;&tcy;&ocy; &lcy;&ocy;&kcy;&acy;&lcy;&softcy;&ncy;&ycy;&jcy; &kcy;&ocy;&ncy;&iecy;&tscy;, &ncy;&acy; &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&mcy; &rcy;&acy;&bcy;&ocy;&tcy;&acy;&iecy;&tcy;  <code>git-receive-pack</code> , &ncy;&ocy; &dcy;&lcy;&yacy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yacy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &scy;&icy;&dcy;&icy;&tcy; &ncy;&acy; &kcy;&ocy;&ncy;&tscy;&iecy; &pcy;&acy;&kcy;&iecy;&tcy;&acy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&kcy;&icy;, &ecy;&tcy;&ocy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy; &pcy;&ucy;&lcy;&softcy;&tcy;&acy;. &Zcy;&acy;&pcy;&ucy;&tcy;&acy;&lcy;&icy;&scy;&softcy;?)</span></p> <p><span data-i18n="df7d1c4a080cb0d4f981ee6de6e8dcb28d1af5e7144630585740fbb3e1aea3cb/08" data-source="There are other real-world examples of using update and post-update hooks found in the Documentation/howto directory." onmousemove="i18n(this)">&Scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&yucy;&tcy; &icy; &dcy;&rcy;&ucy;&gcy;&icy;&iecy; &rcy;&iecy;&acy;&lcy;&softcy;&ncy;&ycy;&iecy; &pcy;&rcy;&icy;&mcy;&iecy;&rcy;&ycy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &ocy;&bcy;&rcy;&acy;&bcy;&ocy;&tcy;&chcy;&icy;&kcy;&ocy;&vcy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &icy; &pcy;&ocy;&scy;&tcy;&ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &mcy;&ocy;&zhcy;&ncy;&ocy; &ncy;&acy;&jcy;&tcy;&icy; &vcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&iecy; Documentation/howto.</span></p> <p><span data-i18n="c478e570000d31a79b2106ffc45006c339277b89f3ce249f253f74b7acb921a5/ce" data-source="&lt;code&gt;git-receive-pack&lt;/code&gt; honours the receive.denyNonFastForwards config option, which tells it if updates to a ref should be denied if they are not fast-forwards." onmousemove="i18n(this)"><code>git-receive-pack</code>  &ucy;&chcy;&icy;&tcy;&ycy;&vcy;&acy;&iecy;&tcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy; &pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&icy;&yacy;.denyNonFastForwards, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &scy;&ocy;&ocy;&bcy;&shchcy;&acy;&iecy;&tcy; &iecy;&mcy;&ucy;, &scy;&lcy;&iecy;&dcy;&ucy;&iecy;&tcy; &lcy;&icy; &zcy;&acy;&pcy;&rcy;&iecy;&shchcy;&acy;&tcy;&softcy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &scy;&scy;&ycy;&lcy;&kcy;&icy;, &iecy;&scy;&lcy;&icy; &ocy;&ncy;&icy; &ncy;&iecy; &pcy;&iecy;&rcy;&iecy;&mcy;&ocy;&tcy;&acy;&ncy;&ycy; &vcy;&pcy;&iecy;&rcy;&iecy;&dcy;.</span></p> <p><span data-i18n="dd22e42440d6ec886b1df8393d0328aa319c0c5fd5db3d4780a4f2f903a6b313/13" data-source="A number of other receive.* config options are available to tweak its behavior, see &lt;a href=&quot;git-config&quot;&gt;git-config[1]&lt;/a&gt;." onmousemove="i18n(this)">&Dcy;&ocy;&scy;&tcy;&ucy;&pcy;&iecy;&ncy; &rcy;&yacy;&dcy; &dcy;&rcy;&ucy;&gcy;&icy;&khcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ocy;&vcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy; &pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&icy;&yacy;.* &dcy;&lcy;&yacy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&jcy;&kcy;&icy; &iecy;&gcy;&ocy; &pcy;&ocy;&vcy;&iecy;&dcy;&iecy;&ncy;&icy;&yacy;, &scy;&mcy;.  <a href="git-config.html">git-config[1]</a> .</span></p> </div> <h2 class="text-body-emphasis"  id="_options"><span data-i18n="d0db8b5e364b6989e4b8f38a2b3846b87d99a51c1592ebf35d21cc66405a8e39/b6" data-source="Options" onmousemove="i18n(this)">Options</span></h2> <div> <div> <dl> <dt id="Documentation/git-receive-pack.txt-ltgit-dirgt"><span data-i18n="67715d3cb1cc61968c8b0e24a9b37c517eabb97ad3105f5678cfc8f1a17cc26e/10" data-source="&amp;lt;git-dir&amp;gt;" onmousemove="i18n(this)">&lt;git-dir&gt;</span></dt> <dd> <p><span data-i18n="d2a0611fece6045d9e84e9901793271130e9a6b84c28fe374b846043651bcb3a/ab" data-source="The repository to sync into." onmousemove="i18n(this)">&Rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&jcy; &dcy;&lcy;&yacy; &scy;&icy;&ncy;&khcy;&rcy;&ocy;&ncy;&icy;&zcy;&acy;&tscy;&icy;&icy;.</span></p> </dd> <dt id="Documentation/git-receive-pack.txt---http-backend-info-refs"><span data-i18n="f435a85a310a8413eba21321773990f1232d4947dce57b8be1d4dd3706fe3c3f/ad" data-source="--http-backend-info-refs" onmousemove="i18n(this)">--http-backend-info-refs</span></dt> <dd> <p><span data-i18n="c68b78ae2c2b88521b2b2cc52f987c83e9be2df02c5da2433ee537c0e4b8c224/52" data-source="Used by &lt;a href=&quot;git-http-backend&quot;&gt;git-http-backend[1]&lt;/a&gt; to serve up &lt;code&gt;$GIT_URL/info/refs?service=git-receive-pack&lt;/code&gt; requests. See &lt;code&gt;--http-backend-info-refs&lt;/code&gt; in &lt;a href=&quot;git-upload-pack&quot;&gt;git-upload-pack[1]&lt;/a&gt;." onmousemove="i18n(this)">&Icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy;  <a href="git-http-backend.html">git-http-backend[1]</a>  &dcy;&lcy;&yacy; &ocy;&bcy;&scy;&lcy;&ucy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&yacy; &zcy;&acy;&pcy;&rcy;&ocy;&scy;&ocy;&vcy;  <code>$GIT_URL/info/refs?service=git-receive-pack</code> . &Scy;&mcy;.  <code>--http-backend-info-refs</code>  &vcy;  <a href="git-upload-pack.html">git-upload-pack[1]</a> .</span></p> </dd> </dl> </div> </div> <h2 class="text-body-emphasis"  id="_pre_receive_hook"><span data-i18n="ed120f091298cfd46f339d3891ff6b2ae65e20151e3aefde80a82799bc834bd2/91" data-source="Pre-receive hook" onmousemove="i18n(this)">Pre-receive hook</span></h2> <div> <p><span data-i18n="05e2aedf7af3f2d7303d164eaa317a612b0a9625f1ef8493e1e0fe5028a35061/89" data-source="Before any ref is updated, if $GIT_DIR/hooks/pre-receive file exists and is executable, it will be invoked once with no parameters. The standard input of the hook will be one line per ref to be updated:" onmousemove="i18n(this)">&Pcy;&rcy;&iecy;&zhcy;&dcy;&iecy; &chcy;&iecy;&mcy; &kcy;&acy;&kcy;&acy;&yacy;-&lcy;&icy;&bcy;&ocy; &scy;&scy;&ycy;&lcy;&kcy;&acy; &bcy;&ucy;&dcy;&iecy;&tcy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&acy;, &iecy;&scy;&lcy;&icy; &fcy;&acy;&jcy;&lcy; $GIT_DIR/hooks/pre-receive &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &icy; &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &icy;&scy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&mcy;&ycy;&mcy;, &ocy;&ncy; &bcy;&ucy;&dcy;&iecy;&tcy; &vcy;&ycy;&zcy;&vcy;&acy;&ncy; &ocy;&dcy;&icy;&ncy; &rcy;&acy;&zcy; &bcy;&iecy;&zcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ocy;&vcy;. &Scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ycy;&jcy; &vcy;&vcy;&ocy;&dcy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&acy; &bcy;&ucy;&dcy;&iecy;&tcy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&tcy;&softcy; &icy;&zcy; &ocy;&dcy;&ncy;&ocy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy; &dcy;&lcy;&yacy; &kcy;&acy;&zhcy;&dcy;&ocy;&jcy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&yacy;&iecy;&mcy;&ocy;&jcy; &scy;&scy;&ycy;&lcy;&kcy;&icy;:</span></p> <div> <div> <pre class="hljs language-sql">sha1<span class="hljs-operator">-</span><span class="hljs-keyword">old</span> SP sha1<span class="hljs-operator">-</span><span class="hljs-keyword">new</span> SP refname LF</pre> </div> </div> <p><span data-i18n="6f3869d10e45e36235f56985c06d898d312a8bdb69ca127381479b92c87ec862/f8" data-source="The refname value is relative to $GIT_DIR; e.g. for the master head this is &amp;quot;refs/heads/master&amp;quot;. The two sha1 values before each refname are the object names for the refname before and after the update. Refs to be created will have sha1-old equal to 0{40}, while refs to be deleted will have sha1-new equal to 0{40}, otherwise sha1-old and sha1-new should be valid objects in the repository." onmousemove="i18n(this)">&Zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; refname &ocy;&tcy;&ncy;&ocy;&scy;&icy;&tcy;&scy;&yacy; &kcy; $GIT_DIR; &ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &dcy;&lcy;&yacy; &gcy;&lcy;&acy;&vcy;&ncy;&ocy;&jcy; &gcy;&ocy;&lcy;&ocy;&vcy;&kcy;&icy; &ecy;&tcy;&ocy;  &quot;refs/heads/master&quot; . &Dcy;&vcy;&acy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy; sha1 &pcy;&iecy;&rcy;&iecy;&dcy; &kcy;&acy;&zhcy;&dcy;&ycy;&mcy; &icy;&mcy;&iecy;&ncy;&iecy;&mcy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &mdash; &ecy;&tcy;&ocy; &icy;&mcy;&iecy;&ncy;&acy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ocy;&vcy; &dcy;&lcy;&yacy; &icy;&mcy;&iecy;&ncy;&icy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &dcy;&ocy; &icy; &pcy;&ocy;&scy;&lcy;&iecy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy;. &Scy;&ocy;&zcy;&dcy;&acy;&vcy;&acy;&iecy;&mcy;&ycy;&iecy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &bcy;&ucy;&dcy;&ucy;&tcy; &icy;&mcy;&iecy;&tcy;&softcy; sha1-old, &rcy;&acy;&vcy;&ncy;&ycy;&jcy; 0{40}, &acy; &ucy;&dcy;&acy;&lcy;&yacy;&iecy;&mcy;&ycy;&iecy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &bcy;&ucy;&dcy;&ucy;&tcy; &icy;&mcy;&iecy;&tcy;&softcy; sha1-new, &rcy;&acy;&vcy;&ncy;&ycy;&jcy; 0{40}, &vcy; &pcy;&rcy;&ocy;&tcy;&icy;&vcy;&ncy;&ocy;&mcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy; sha1-old &icy; sha1-new &dcy;&ocy;&lcy;&zhcy;&ncy;&ycy; &bcy;&ycy;&tcy;&softcy; &dcy;&ocy;&pcy;&ucy;&scy;&tcy;&icy;&mcy;&ycy;&mcy;&icy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy;&mcy;&icy; &vcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy;.</span></p> <p><span data-i18n="28cfd243beac84e25815a1d0d8e70997b17be3d68002462369eb907842e8f3a2/18" data-source="When accepting a signed push (see &lt;a href=&quot;git-push&quot;&gt;git-push[1]&lt;/a&gt;), the signed push certificate is stored in a blob and an environment variable &lt;code&gt;GIT_PUSH_CERT&lt;/code&gt; can be consulted for its object name. See the description of &lt;code&gt;post-receive&lt;/code&gt; hook for an example. In addition, the certificate is verified using GPG and the result is exported with the following environment variables:" onmousemove="i18n(this)">&Pcy;&rcy;&icy; &pcy;&rcy;&icy;&ncy;&yacy;&tcy;&icy;&icy; &pcy;&ocy;&dcy;&pcy;&icy;&scy;&acy;&ncy;&ncy;&ocy;&gcy;&ocy; push-&ucy;&vcy;&iecy;&dcy;&ocy;&mcy;&lcy;&iecy;&ncy;&icy;&yacy; (&scy;&mcy;.  <a href="git-push.html">git-push[1]</a> ) &pcy;&ocy;&dcy;&pcy;&icy;&scy;&acy;&ncy;&ncy;&ycy;&jcy; push-&scy;&iecy;&rcy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy; &scy;&ocy;&khcy;&rcy;&acy;&ncy;&yacy;&iecy;&tcy;&scy;&yacy; &vcy; &bcy;&ocy;&lcy;&softcy;&shcy;&ocy;&mcy; &dcy;&vcy;&ocy;&icy;&chcy;&ncy;&ocy;&mcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&iecy;, &acy; &icy;&mcy;&yacy; &iecy;&gcy;&ocy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy; &mcy;&ocy;&zhcy;&ncy;&ocy; &ucy;&zcy;&ncy;&acy;&tcy;&softcy; &vcy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ocy;&jcy; &scy;&rcy;&iecy;&dcy;&ycy;  <code>GIT_PUSH_CERT</code> . &Pcy;&rcy;&icy;&mcy;&iecy;&rcy; &scy;&mcy;. &vcy; &ocy;&pcy;&icy;&scy;&acy;&ncy;&icy;&icy; &kcy;&rcy;&yucy;&chcy;&kcy;&acy;  <code>post-receive</code> . &Kcy;&rcy;&ocy;&mcy;&iecy; &tcy;&ocy;&gcy;&ocy;, &scy;&iecy;&rcy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&yacy;&iecy;&tcy;&scy;&yacy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; GPG, &acy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy; &ecy;&kcy;&scy;&pcy;&ocy;&rcy;&tcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy; &scy;&ocy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&icy;&mcy;&icy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ycy;&mcy;&icy; &scy;&rcy;&iecy;&dcy;&ycy;:</span></p> <div> <dl> <dt id="Documentation/git-receive-pack.txt-codeGITPUSHCERTSIGNERcode"> <code>GIT_PUSH_CERT_SIGNER</code> </dt> <dd> <p><span data-i18n="a542334c5f9da0c3a125371a6c8b8c524c3324d203d3f9ccb82120c7e4bbac36/1f" data-source="The name and the e-mail address of the owner of the key that signed the push certificate." onmousemove="i18n(this)">&Icy;&mcy;&yacy; &icy; &acy;&dcy;&rcy;&iecy;&scy; &ecy;&lcy;&iecy;&kcy;&tcy;&rcy;&ocy;&ncy;&ncy;&ocy;&jcy; &pcy;&ocy;&chcy;&tcy;&ycy; &vcy;&lcy;&acy;&dcy;&iecy;&lcy;&softcy;&tscy;&acy; &kcy;&lcy;&yucy;&chcy;&acy;, &pcy;&ocy;&dcy;&pcy;&icy;&scy;&acy;&vcy;&shcy;&iecy;&gcy;&ocy; push-&scy;&iecy;&rcy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;.</span></p> </dd> <dt id="Documentation/git-receive-pack.txt-codeGITPUSHCERTKEYcode"> <code>GIT_PUSH_CERT_KEY</code> </dt> <dd> <p><span data-i18n="4ede19e7f85ce0b9ec8573667ab917ce1cf46598cc15634e800fb2e9bb0cfb3b/7c" data-source="The GPG key ID of the key that signed the push certificate." onmousemove="i18n(this)">&Icy;&dcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;&ocy;&rcy; &kcy;&lcy;&yucy;&chcy;&acy; GPG &kcy;&lcy;&yucy;&chcy;&acy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&mcy; &bcy;&ycy;&lcy; &pcy;&ocy;&dcy;&pcy;&icy;&scy;&acy;&ncy; push-&scy;&iecy;&rcy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;.</span></p> </dd> <dt id="Documentation/git-receive-pack.txt-codeGITPUSHCERTSTATUScode"> <code>GIT_PUSH_CERT_STATUS</code> </dt> <dd> <p><span data-i18n="11419871a0bcb9968cdbd43bcf7ae8cedcc167ba5de4619f7b7c651fe74297cb/21" data-source="The status of GPG verification of the push certificate, using the same mnemonic as used in &lt;code&gt;%G?&lt;/code&gt; format of &lt;code&gt;git log&lt;/code&gt; family of commands (see &lt;a href=&quot;git-log&quot;&gt;git-log[1]&lt;/a&gt;)." onmousemove="i18n(this)">&Scy;&tcy;&acy;&tcy;&ucy;&scy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy; GPG push-&scy;&iecy;&rcy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;&acy; &scy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy;&mcy; &tcy;&ocy;&jcy; &zhcy;&iecy; &mcy;&ncy;&iecy;&mcy;&ocy;&ncy;&icy;&kcy;&icy;, &chcy;&tcy;&ocy; &icy; &vcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&iecy;  <code>%G?</code>  &scy;&iecy;&mcy;&iecy;&jcy;&scy;&tcy;&vcy;&acy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;  <code>git log</code>  (&scy;&mcy;.  <a href="git-log.html">git-log[1]</a> ).</span></p> </dd> <dt id="Documentation/git-receive-pack.txt-codeGITPUSHCERTNONCEcode"> <code>GIT_PUSH_CERT_NONCE</code> </dt> <dd> <p><span data-i18n="6272962a2a3bbf1001bebaf735d7a53048c4bf776a93c8b73b4bebca4edada43/a1" data-source="The nonce string the process asked the signer to include in the push certificate. If this does not match the value recorded on the &amp;quot;nonce&amp;quot; header in the push certificate, it may indicate that the certificate is a valid one that is being replayed from a separate &amp;quot;git push&amp;quot; session." onmousemove="i18n(this)">&Scy;&tcy;&rcy;&ocy;&kcy;&ucy; nonce, &kcy;&ocy;&tcy;&ocy;&rcy;&ucy;&yucy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy; &pcy;&ocy;&pcy;&rcy;&ocy;&scy;&icy;&lcy; &pcy;&ocy;&dcy;&pcy;&icy;&scy;&acy;&vcy;&shcy;&ucy;&yucy; &vcy;&kcy;&lcy;&yucy;&chcy;&icy;&tcy;&softcy; &vcy; push-&scy;&iecy;&rcy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;. &IEcy;&scy;&lcy;&icy; &ocy;&ncy;&ocy; &ncy;&iecy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yucy;, &zcy;&acy;&pcy;&icy;&scy;&acy;&ncy;&ncy;&ocy;&mcy;&ucy; &vcy; &zcy;&acy;&gcy;&ocy;&lcy;&ocy;&vcy;&kcy;&iecy;  &quot;nonce&quot;  &vcy; push-&scy;&iecy;&rcy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;&iecy;, &ecy;&tcy;&ocy; &mcy;&ocy;&zhcy;&iecy;&tcy; &ucy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&tcy;&softcy; &ncy;&acy; &tcy;&ocy;, &chcy;&tcy;&ocy; &scy;&iecy;&rcy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy; &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &dcy;&iecy;&jcy;&scy;&tcy;&vcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ycy;&mcy; &icy; &vcy;&ocy;&scy;&pcy;&rcy;&ocy;&icy;&zcy;&vcy;&ocy;&dcy;&icy;&tcy;&scy;&yacy; &icy;&zcy; &ocy;&tcy;&dcy;&iecy;&lcy;&softcy;&ncy;&ocy;&gcy;&ocy; &scy;&iecy;&acy;&ncy;&scy;&acy;  &quot;git push&quot; .</span></p> </dd> <dt id="Documentation/git-receive-pack.txt-codeGITPUSHCERTNONCESTATUScode"> <code>GIT_PUSH_CERT_NONCE_STATUS</code> </dt> <dd> <div> <dl> <dt id="Documentation/git-receive-pack.txt-codeUNSOLICITEDcode"> <code>UNSOLICITED</code> </dt> <dd> <p><span data-i18n="da31b237288376901e41788aaeeff154a7c3e77ba5390293c0704d2b4d38fd1b/db" data-source="&amp;quot;git push --signed&amp;quot; sent a nonce when we did not ask it to send one." onmousemove="i18n(this)">&quot;git push --signed&quot;  &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&lcy; &ocy;&dcy;&ncy;&ocy;&rcy;&acy;&zcy;&ocy;&vcy;&ycy;&jcy; &ncy;&ocy;&mcy;&iecy;&rcy;, &khcy;&ocy;&tcy;&yacy; &mcy;&ycy; &ncy;&iecy; &pcy;&rcy;&ocy;&scy;&icy;&lcy;&icy; &iecy;&gcy;&ocy; &ocy;&bcy; &ecy;&tcy;&ocy;&mcy;.</span></p> </dd> <dt id="Documentation/git-receive-pack.txt-codeMISSINGcode"> <code>MISSING</code> </dt> <dd> <p><span data-i18n="5658d296a75f6c7033ece4b4affabd0e315788374dfcc49a06c886d2789e5ce3/11" data-source="&amp;quot;git push --signed&amp;quot; did not send any nonce header." onmousemove="i18n(this)">&quot;git push --signed&quot;  &ncy;&iecy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&lcy; &ncy;&icy; &ocy;&dcy;&ncy;&ocy;&gcy;&ocy; &zcy;&acy;&gcy;&ocy;&lcy;&ocy;&vcy;&kcy;&acy; nonce.</span></p> </dd> <dt id="Documentation/git-receive-pack.txt-codeBADcode"> <code>BAD</code> </dt> <dd> <p><span data-i18n="d91f58b8274e0557466ae0edf34d695ca99414d3166bc2253a7319c77595bd61/07" data-source="&amp;quot;git push --signed&amp;quot; sent a bogus nonce." onmousemove="i18n(this)">&quot;git push --signed&quot;  &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&lcy; &pcy;&ocy;&dcy;&dcy;&iecy;&lcy;&softcy;&ncy;&ycy;&jcy; &ocy;&dcy;&ncy;&ocy;&rcy;&acy;&zcy;&ocy;&vcy;&ycy;&jcy; &ncy;&ocy;&mcy;&iecy;&rcy;.</span></p> </dd> <dt id="Documentation/git-receive-pack.txt-codeOKcode"> <code>OK</code> </dt> <dd> <p><span data-i18n="2e423a81df2bf0860afc9130d45749a24ded4f1a3d4778d0e7ca692c4d3b5806/ca" data-source="&amp;quot;git push --signed&amp;quot; sent the nonce we asked it to send." onmousemove="i18n(this)">&quot;git push --signed&quot;  &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&lcy; &ocy;&dcy;&ncy;&ocy;&rcy;&acy;&zcy;&ocy;&vcy;&ycy;&jcy; &ncy;&ocy;&mcy;&iecy;&rcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &mcy;&ycy; &pcy;&rcy;&ocy;&scy;&icy;&lcy;&icy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&tcy;&softcy;.</span></p> </dd> <dt id="Documentation/git-receive-pack.txt-codeSLOPcode"> <code>SLOP</code> </dt> <dd> <p><span data-i18n="fd28402c78e7ad941955717c98cfd90305269beef628435d9b931c592ce19030/b8" data-source="&amp;quot;git push --signed&amp;quot; sent a nonce different from what we asked it to send now, but in a previous session. See &lt;code&gt;GIT_PUSH_CERT_NONCE_SLOP&lt;/code&gt; environment variable." onmousemove="i18n(this)">&quot;git push --signed&quot;  &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&lcy; &ocy;&dcy;&ncy;&ocy;&rcy;&acy;&zcy;&ocy;&vcy;&ycy;&jcy; &ncy;&ocy;&mcy;&iecy;&rcy;, &ocy;&tcy;&lcy;&icy;&chcy;&ncy;&ycy;&jcy; &ocy;&tcy; &tcy;&ocy;&gcy;&ocy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &mcy;&ycy; &pcy;&rcy;&ocy;&scy;&icy;&lcy;&icy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&tcy;&softcy; &scy;&iecy;&jcy;&chcy;&acy;&scy;, &ncy;&ocy; &vcy; &pcy;&rcy;&iecy;&dcy;&ycy;&dcy;&ucy;&shchcy;&iecy;&mcy; &scy;&iecy;&acy;&ncy;&scy;&iecy;. &Scy;&mcy;. &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ucy;&yucy; &scy;&rcy;&iecy;&dcy;&ycy;  <code>GIT_PUSH_CERT_NONCE_SLOP</code> .</span></p> </dd> </dl> </div> </dd> <dt id="Documentation/git-receive-pack.txt-codeGITPUSHCERTNONCESLOPcode"> <code>GIT_PUSH_CERT_NONCE_SLOP</code> </dt> <dd> <p><span data-i18n="a665ffaa729dedf3501f7d3fec9d67a3438a447873a955a2826929af1376c8df/61" data-source="&amp;quot;git push --signed&amp;quot; sent a nonce different from what we asked it to send now, but in a different session whose starting time is different by this many seconds from the current session. Only meaningful when &lt;code&gt;GIT_PUSH_CERT_NONCE_STATUS&lt;/code&gt; says &lt;code&gt;SLOP&lt;/code&gt;. Also read about &lt;code&gt;receive.certNonceSlop&lt;/code&gt; variable in &lt;a href=&quot;git-config&quot;&gt;git-config[1]&lt;/a&gt;." onmousemove="i18n(this)">&quot;git push --signed&quot;  &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&lcy; &ocy;&dcy;&ncy;&ocy;&rcy;&acy;&zcy;&ocy;&vcy;&ycy;&jcy; &ncy;&ocy;&mcy;&iecy;&rcy;, &ocy;&tcy;&lcy;&icy;&chcy;&ncy;&ycy;&jcy; &ocy;&tcy; &tcy;&ocy;&gcy;&ocy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &mcy;&ycy; &pcy;&rcy;&ocy;&scy;&icy;&lcy;&icy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&tcy;&softcy; &scy;&iecy;&jcy;&chcy;&acy;&scy;, &ncy;&ocy; &vcy; &dcy;&rcy;&ucy;&gcy;&ocy;&mcy; &scy;&iecy;&acy;&ncy;&scy;&iecy;, &vcy;&rcy;&iecy;&mcy;&yacy; &ncy;&acy;&chcy;&acy;&lcy;&acy; &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&gcy;&ocy; &ocy;&tcy;&lcy;&icy;&chcy;&acy;&iecy;&tcy;&scy;&yacy; &ncy;&acy; &ecy;&tcy;&ocy; &kcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&tcy;&vcy;&ocy; &scy;&iecy;&kcy;&ucy;&ncy;&dcy; &ocy;&tcy; &tcy;&iecy;&kcy;&ucy;&shchcy;&iecy;&gcy;&ocy; &scy;&iecy;&acy;&ncy;&scy;&acy;. &Icy;&mcy;&iecy;&iecy;&tcy; &scy;&mcy;&ycy;&scy;&lcy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &tcy;&ocy;&gcy;&dcy;&acy;, &kcy;&ocy;&gcy;&dcy;&acy;  <code>GIT_PUSH_CERT_NONCE_STATUS</code>  &gcy;&ocy;&vcy;&ocy;&rcy;&icy;&tcy;  <code>SLOP</code>  . &Tcy;&acy;&kcy;&zhcy;&iecy; &pcy;&rcy;&ocy;&chcy;&tcy;&icy;&tcy;&iecy; &ocy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ocy;&jcy;  <code>receive.certNonceSlop</code>  &vcy;  <a href="git-config.html">git-config[1]</a> .</span></p> </dd> </dl> </div> <p><span data-i18n="f605483f30339e35baf2e35f756c840f5329c49b4f5d590f2ad024ae46bfec8e/b3" data-source="This hook is called before any refname is updated and before any fast-forward checks are performed." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &khcy;&ucy;&kcy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &pcy;&iecy;&rcy;&iecy;&dcy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy;&mcy; &lcy;&yucy;&bcy;&ocy;&gcy;&ocy; &icy;&mcy;&iecy;&ncy;&icy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &icy; &pcy;&iecy;&rcy;&iecy;&dcy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&iecy;&mcy; &kcy;&acy;&kcy;&icy;&khcy;-&lcy;&icy;&bcy;&ocy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&ocy;&kcy; &vcy;&pcy;&iecy;&rcy;&iecy;&dcy;.</span></p> <p><span data-i18n="7e04a4771578304c74308c1dcf8d1f304540ff331cb072ee40c9295cddf4d3ce/96" data-source="If the pre-receive hook exits with a non-zero exit status no updates will be performed, and the update, post-receive and post-update hooks will not be invoked either. This can be useful to quickly bail out if the update is not to be supported." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy; &pcy;&rcy;&iecy;&dcy;&vcy;&acy;&rcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&gcy;&ocy; &pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&icy;&yacy; &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&acy;&iecy;&tcy;&scy;&yacy; &scy; &ncy;&iecy;&ncy;&ucy;&lcy;&iecy;&vcy;&ycy;&mcy; &scy;&tcy;&acy;&tcy;&ucy;&scy;&ocy;&mcy; &vcy;&ycy;&khcy;&ocy;&dcy;&acy;, &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&tcy;&softcy;&scy;&yacy; &ncy;&iecy; &bcy;&ucy;&dcy;&ucy;&tcy;, &acy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&icy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy;, &pcy;&ocy;&scy;&tcy;-&pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&icy;&yacy; &icy; &pcy;&ocy;&scy;&tcy;-&ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &tcy;&acy;&kcy;&zhcy;&iecy; &ncy;&iecy; &bcy;&ucy;&dcy;&ucy;&tcy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&tcy;&softcy;&scy;&yacy;. &Ecy;&tcy;&ocy; &mcy;&ocy;&zhcy;&iecy;&tcy; &bcy;&ycy;&tcy;&softcy; &pcy;&ocy;&lcy;&iecy;&zcy;&ncy;&ocy; &dcy;&lcy;&yacy; &bcy;&ycy;&scy;&tcy;&rcy;&ocy;&gcy;&ocy; &vcy;&ycy;&khcy;&ocy;&dcy;&acy; &icy;&zcy; &scy;&icy;&tcy;&ucy;&acy;&tscy;&icy;&icy;, &iecy;&scy;&lcy;&icy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy; &ncy;&iecy; &pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&icy;&vcy;&acy;&iecy;&tcy;&scy;&yacy;.</span></p> <p><span data-i18n="99319e21a274ef497a2eafe34dc5b84cf408f8c37c7944ccf3165654c06b7b82/bf" data-source="See the notes on the quarantine environment below." onmousemove="i18n(this)">&Scy;&mcy;. &pcy;&rcy;&icy;&mcy;&iecy;&chcy;&acy;&ncy;&icy;&yacy; &ocy; &kcy;&acy;&rcy;&acy;&ncy;&tcy;&icy;&ncy;&ncy;&ocy;&jcy; &scy;&rcy;&iecy;&dcy;&iecy; &ncy;&icy;&zhcy;&iecy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_update_hook"><span data-i18n="9ffb8beab165c2bac1ea2331d20446797a4cd99ea0e6268cfd988e3c64642553/c0" data-source="Update hook" onmousemove="i18n(this)">Update hook</span></h2> <div> <p><span data-i18n="7a95d3aa4953f27b819e777814ea55c7926992d30a80473e788f3d7b6e91836a/dc" data-source="Before each ref is updated, if $GIT_DIR/hooks/update file exists and is executable, it is invoked once per ref, with three parameters:" onmousemove="i18n(this)">&Pcy;&iecy;&rcy;&iecy;&dcy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy;&mcy; &kcy;&acy;&zhcy;&dcy;&ocy;&jcy; &scy;&scy;&ycy;&lcy;&kcy;&icy;, &iecy;&scy;&lcy;&icy; &fcy;&acy;&jcy;&lcy; $GIT_DIR/hooks/update &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &icy; &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &icy;&scy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&mcy;&ycy;&mcy;, &ocy;&ncy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &ocy;&dcy;&icy;&ncy; &rcy;&acy;&zcy; &dcy;&lcy;&yacy; &kcy;&acy;&zhcy;&dcy;&ocy;&jcy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &scy; &tcy;&rcy;&iecy;&mcy;&yacy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&acy;&mcy;&icy;:</span></p> <div> <div> <pre class="hljs language-sql">$GIT_DIR<span class="hljs-operator">/</span>hooks<span class="hljs-operator">/</span><span class="hljs-keyword">update</span> refname sha1<span class="hljs-operator">-</span><span class="hljs-keyword">old</span> sha1<span class="hljs-operator">-</span><span class="hljs-keyword">new</span></pre> </div> </div> <p><span data-i18n="90a8c9983bf1654bb61b912e2d8fbf5ed10e408bd770fde9847cb9588e3f2606/2b" data-source="The refname parameter is relative to $GIT_DIR; e.g. for the master head this is &amp;quot;refs/heads/master&amp;quot;. The two sha1 arguments are the object names for the refname before and after the update. Note that the hook is called before the refname is updated, so either sha1-old is 0{40} (meaning there is no such ref yet), or it should match what is recorded in refname." onmousemove="i18n(this)">&Pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy; refname &ocy;&tcy;&ncy;&ocy;&scy;&icy;&tcy;&scy;&yacy; &kcy; $GIT_DIR; &ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &dcy;&lcy;&yacy; &gcy;&lcy;&acy;&vcy;&ncy;&ocy;&jcy; &gcy;&ocy;&lcy;&ocy;&vcy;&kcy;&icy; &ecy;&tcy;&ocy;  &quot;refs/heads/master&quot; . &Dcy;&vcy;&acy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;&acy; sha1 &mdash; &ecy;&tcy;&ocy; &icy;&mcy;&iecy;&ncy;&acy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ocy;&vcy; &dcy;&lcy;&yacy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &dcy;&ocy; &icy; &pcy;&ocy;&scy;&lcy;&iecy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy;. &Ocy;&bcy;&rcy;&acy;&tcy;&icy;&tcy;&iecy; &vcy;&ncy;&icy;&mcy;&acy;&ncy;&icy;&iecy;, &chcy;&tcy;&ocy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &dcy;&ocy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &icy;&mcy;&iecy;&ncy;&icy; &scy;&scy;&ycy;&lcy;&kcy;&icy;, &pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy; &lcy;&icy;&bcy;&ocy; sha1-old &rcy;&acy;&vcy;&iecy;&ncy; 0{40} (&tcy;&ocy; &iecy;&scy;&tcy;&softcy; &tcy;&acy;&kcy;&ocy;&jcy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &iecy;&shchcy;&iecy; &ncy;&iecy;&tcy;), &lcy;&icy;&bcy;&ocy; &ocy;&ncy; &dcy;&ocy;&lcy;&zhcy;&iecy;&ncy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ocy;&vcy;&acy;&tcy;&softcy; &tcy;&ocy;&mcy;&ucy;, &chcy;&tcy;&ocy; &zcy;&acy;&pcy;&icy;&scy;&acy;&ncy;&ocy; &vcy; &icy;&mcy;&iecy;&ncy;&icy; &scy;&scy;&ycy;&lcy;&kcy;&icy;.</span></p> <p><span data-i18n="04f655a3a5413f8e8001e4f90628f210fcaf0705d2d416ea164bdfc678a87a23/6e" data-source="The hook should exit with non-zero status if it wants to disallow updating the named ref. Otherwise it should exit with zero." onmousemove="i18n(this)">&KHcy;&ucy;&kcy; &dcy;&ocy;&lcy;&zhcy;&iecy;&ncy; &vcy;&ycy;&jcy;&tcy;&icy; &scy; &ncy;&iecy;&ncy;&ucy;&lcy;&iecy;&vcy;&ycy;&mcy; &scy;&tcy;&acy;&tcy;&ucy;&scy;&ocy;&mcy;, &iecy;&scy;&lcy;&icy; &ocy;&ncy; &khcy;&ocy;&chcy;&iecy;&tcy; &zcy;&acy;&pcy;&rcy;&iecy;&tcy;&icy;&tcy;&softcy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy; &icy;&mcy;&iecy;&ncy;&ocy;&vcy;&acy;&ncy;&ncy;&ocy;&jcy; &scy;&scy;&ycy;&lcy;&kcy;&icy;. &Vcy; &pcy;&rcy;&ocy;&tcy;&icy;&vcy;&ncy;&ocy;&mcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy; &ocy;&ncy; &dcy;&ocy;&lcy;&zhcy;&iecy;&ncy; &vcy;&ycy;&jcy;&tcy;&icy; &scy; &ncy;&ucy;&lcy;&iecy;&mcy;.</span></p> <p><span data-i18n="1af4183e77d71f17a898708e2b3fd36368eb51ff37e97ff7f7a42410013fd731/32" data-source="Successful execution (a zero exit status) of this hook does not ensure the ref will actually be updated, it is only a prerequisite. As such it is not a good idea to send notices (e.g. email) from this hook. Consider using the post-receive hook instead." onmousemove="i18n(this)">&Ucy;&scy;&pcy;&iecy;&shcy;&ncy;&ocy;&iecy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&iecy; (&ncy;&ucy;&lcy;&iecy;&vcy;&ocy;&jcy; &scy;&tcy;&acy;&tcy;&ucy;&scy; &vcy;&ycy;&khcy;&ocy;&dcy;&acy;) &ecy;&tcy;&ocy;&gcy;&ocy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&acy; &ncy;&iecy; &gcy;&acy;&rcy;&acy;&ncy;&tcy;&icy;&rcy;&ucy;&iecy;&tcy;, &chcy;&tcy;&ocy; &scy;&scy;&ycy;&lcy;&kcy;&acy; &dcy;&iecy;&jcy;&scy;&tcy;&vcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy; &bcy;&ucy;&dcy;&iecy;&tcy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&acy;, &ecy;&tcy;&ocy; &vcy;&scy;&iecy;&gcy;&ocy; &lcy;&icy;&shcy;&softcy; &pcy;&rcy;&iecy;&dcy;&vcy;&acy;&rcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&iecy; &ucy;&scy;&lcy;&ocy;&vcy;&icy;&iecy;. &Pcy;&ocy; &ecy;&tcy;&ocy;&jcy; &pcy;&rcy;&icy;&chcy;&icy;&ncy;&iecy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&tcy;&softcy; &ucy;&vcy;&iecy;&dcy;&ocy;&mcy;&lcy;&iecy;&ncy;&icy;&yacy; (&ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &pcy;&ocy; &ecy;&lcy;&iecy;&kcy;&tcy;&rcy;&ocy;&ncy;&ncy;&ocy;&jcy; &pcy;&ocy;&chcy;&tcy;&iecy;) &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &ecy;&tcy;&ocy;&gcy;&ocy; &kcy;&rcy;&yucy;&chcy;&kcy;&acy; &ncy;&iecy; &rcy;&iecy;&kcy;&ocy;&mcy;&iecy;&ncy;&dcy;&ucy;&iecy;&tcy;&scy;&yacy;. &Vcy;&mcy;&iecy;&scy;&tcy;&ocy; &ecy;&tcy;&ocy;&gcy;&ocy; &rcy;&acy;&scy;&scy;&mcy;&ocy;&tcy;&rcy;&icy;&tcy;&iecy; &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;&scy;&tcy;&softcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&acy; post-receive.</span></p> </div> <h2 class="text-body-emphasis"  id="_post_receive_hook"><span data-i18n="171670ef5fa6e2fe7795fdb53ea1eca7d9b0aee8a19d5c26d53bab66e162e470/92" data-source="Post-receive hook" onmousemove="i18n(this)">Post-receive hook</span></h2> <div> <p><span data-i18n="8e7a4b0c810cbcda03c375d905da553c69a73649cd0fce50878cef52b95d1c10/24" data-source="After all refs were updated (or attempted to be updated), if any ref update was successful, and if $GIT_DIR/hooks/post-receive file exists and is executable, it will be invoked once with no parameters. The standard input of the hook will be one line for each successfully updated ref:" onmousemove="i18n(this)">&Pcy;&ocy;&scy;&lcy;&iecy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &vcy;&scy;&iecy;&khcy; &scy;&scy;&ycy;&lcy;&ocy;&kcy; (&icy;&lcy;&icy; &pcy;&ocy;&pcy;&ycy;&tcy;&ocy;&kcy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy;), &iecy;&scy;&lcy;&icy; &kcy;&acy;&kcy;&ocy;&iecy;-&lcy;&icy;&bcy;&ocy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy; &scy;&scy;&ycy;&lcy;&ocy;&kcy; &pcy;&rcy;&ocy;&shcy;&lcy;&ocy; &ucy;&scy;&pcy;&iecy;&shcy;&ncy;&ocy; &icy; &iecy;&scy;&lcy;&icy; &fcy;&acy;&jcy;&lcy; $GIT_DIR/hooks/post-receive &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &icy; &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &icy;&scy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&mcy;&ycy;&mcy;, &ocy;&ncy; &bcy;&ucy;&dcy;&iecy;&tcy; &vcy;&ycy;&zcy;&vcy;&acy;&ncy; &ocy;&dcy;&icy;&ncy; &rcy;&acy;&zcy; &bcy;&iecy;&zcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ocy;&vcy;. &Scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ycy;&jcy; &vcy;&vcy;&ocy;&dcy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&acy; &bcy;&ucy;&dcy;&iecy;&tcy; &pcy;&rcy;&iecy;&dcy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&tcy;&softcy; &scy;&ocy;&bcy;&ocy;&jcy; &ocy;&dcy;&ncy;&ucy; &scy;&tcy;&rcy;&ocy;&kcy;&ucy; &dcy;&lcy;&yacy; &kcy;&acy;&zhcy;&dcy;&ocy;&jcy; &ucy;&scy;&pcy;&iecy;&shcy;&ncy;&ocy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&ncy;&ocy;&jcy; &scy;&scy;&ycy;&lcy;&kcy;&icy;:</span></p> <div> <div> <pre class="hljs language-sql">sha1<span class="hljs-operator">-</span><span class="hljs-keyword">old</span> SP sha1<span class="hljs-operator">-</span><span class="hljs-keyword">new</span> SP refname LF</pre> </div> </div> <p><span data-i18n="d10399892267e78e48e4e42ef323ed9eca1586e5a1ad5e17e24194745afdd426/65" data-source="The refname value is relative to $GIT_DIR; e.g. for the master head this is &amp;quot;refs/heads/master&amp;quot;. The two sha1 values before each refname are the object names for the refname before and after the update. Refs that were created will have sha1-old equal to 0{40}, while refs that were deleted will have sha1-new equal to 0{40}, otherwise sha1-old and sha1-new should be valid objects in the repository." onmousemove="i18n(this)">&Zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; refname &ocy;&tcy;&ncy;&ocy;&scy;&icy;&tcy;&scy;&yacy; &kcy; $GIT_DIR; &ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &dcy;&lcy;&yacy; &gcy;&lcy;&acy;&vcy;&ncy;&ocy;&jcy; &gcy;&ocy;&lcy;&ocy;&vcy;&kcy;&icy; &ecy;&tcy;&ocy;  &quot;refs/heads/master&quot; . &Dcy;&vcy;&acy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy; sha1 &pcy;&iecy;&rcy;&iecy;&dcy; &kcy;&acy;&zhcy;&dcy;&ycy;&mcy; &icy;&mcy;&iecy;&ncy;&iecy;&mcy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &mdash; &ecy;&tcy;&ocy; &icy;&mcy;&iecy;&ncy;&acy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ocy;&vcy; &dcy;&lcy;&yacy; &icy;&mcy;&iecy;&ncy;&icy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &dcy;&ocy; &icy; &pcy;&ocy;&scy;&lcy;&iecy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy;. &Scy;&ocy;&zcy;&dcy;&acy;&ncy;&ncy;&ycy;&iecy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &bcy;&ucy;&dcy;&ucy;&tcy; &icy;&mcy;&iecy;&tcy;&softcy; sha1-old, &rcy;&acy;&vcy;&ncy;&ycy;&jcy; 0{40}, &acy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ycy;&iecy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &bcy;&ucy;&dcy;&ucy;&tcy; &icy;&mcy;&iecy;&tcy;&softcy; sha1-new, &rcy;&acy;&vcy;&ncy;&ycy;&jcy; 0{40}, &vcy; &pcy;&rcy;&ocy;&tcy;&icy;&vcy;&ncy;&ocy;&mcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy; sha1-old &icy; sha1-new &dcy;&ocy;&lcy;&zhcy;&ncy;&ycy; &bcy;&ycy;&tcy;&softcy; &dcy;&ocy;&pcy;&ucy;&scy;&tcy;&icy;&mcy;&ycy;&mcy;&icy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy;&mcy;&icy; &vcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy;.</span></p> <p><span data-i18n="9c19fc90f67c33907b299d78d1cc9a4f9cbabb09947050092e2d5c797fda625a/18" data-source="The &lt;code&gt;GIT_PUSH_CERT*&lt;/code&gt; environment variables can be inspected, just as in &lt;code&gt;pre-receive&lt;/code&gt; hook, after accepting a signed push." onmousemove="i18n(this)">&Pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ycy;&iecy; &scy;&rcy;&iecy;&dcy;&ycy;  <code>GIT_PUSH_CERT*</code>  &mcy;&ocy;&zhcy;&ncy;&ocy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&icy;&tcy;&softcy;, &kcy;&acy;&kcy; &icy; &vcy; &lcy;&ocy;&vcy;&ucy;&shcy;&kcy;&iecy;  <code>pre-receive</code> , &pcy;&ocy;&scy;&lcy;&iecy; &pcy;&rcy;&icy;&ncy;&yacy;&tcy;&icy;&yacy; &pcy;&ocy;&dcy;&pcy;&icy;&scy;&acy;&ncy;&ncy;&ocy;&gcy;&ocy; push-&ucy;&vcy;&iecy;&dcy;&ocy;&mcy;&lcy;&iecy;&ncy;&icy;&yacy;.</span></p> <p><span data-i18n="1b58d9793e154bc2d0653e09c9057b9be377e13c5241e1dc08a94a88b69e7175/40" data-source="Using this hook, it is easy to generate mails describing the updates to the repository. This example script sends one mail message per ref listing the commits pushed to the repository, and logs the push certificates of signed pushes with good signatures to a logger service:" onmousemove="i18n(this)">&Icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yacy; &ecy;&tcy;&ocy;&tcy; &khcy;&ucy;&kcy;, &lcy;&iecy;&gcy;&kcy;&ocy; &gcy;&iecy;&ncy;&iecy;&rcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &pcy;&icy;&scy;&softcy;&mcy;&acy; &scy; &ocy;&pcy;&icy;&scy;&acy;&ncy;&icy;&iecy;&mcy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&jcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy;. &Ecy;&tcy;&ocy;&tcy; &pcy;&rcy;&icy;&mcy;&iecy;&rcy; &scy;&tscy;&iecy;&ncy;&acy;&rcy;&icy;&yacy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &ocy;&dcy;&ncy;&ocy; &pcy;&ocy;&chcy;&tcy;&ocy;&vcy;&ocy;&iecy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&iecy; &ncy;&acy; &kcy;&acy;&zhcy;&dcy;&ucy;&yucy; &scy;&scy;&ycy;&lcy;&kcy;&ucy; &scy;&ocy; &scy;&pcy;&icy;&scy;&kcy;&ocy;&mcy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ocy;&vcy;, &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&ncy;&ycy;&khcy; &vcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&jcy;, &icy; &rcy;&iecy;&gcy;&icy;&scy;&tcy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy; push-&scy;&iecy;&rcy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;&ycy; &pcy;&ocy;&dcy;&pcy;&icy;&scy;&acy;&ncy;&ncy;&ycy;&khcy; push-&ucy;&vcy;&iecy;&dcy;&ocy;&mcy;&lcy;&iecy;&ncy;&icy;&jcy; &scy; &khcy;&ocy;&rcy;&ocy;&shcy;&icy;&mcy;&icy; &pcy;&ocy;&dcy;&pcy;&icy;&scy;&yacy;&mcy;&icy; &vcy; &scy;&lcy;&ucy;&zhcy;&bcy;&ucy; &rcy;&iecy;&gcy;&icy;&scy;&tcy;&rcy;&acy;&tscy;&icy;&icy;:</span></p> <div> <div> <pre class="hljs language-bash"><span class="hljs-meta">#!/bin/sh</span>
<span class="hljs-comment" title="# mail out commit update information."># &rcy;&acy;&scy;&scy;&ycy;&lcy;&kcy;&acy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&icy; &ocy;&bcy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&icy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;.</span>
<span class="hljs-keyword">while</span> <span class="hljs-built_in">read</span> oval nval ref
<span class="hljs-keyword">do</span>
        <span class="hljs-keyword">if</span> <span class="hljs-built_in">expr</span> <span class="hljs-string">&quot;<span class="hljs-variable">$oval</span>&quot;</span> : <span class="hljs-string">&apos;0*$&apos;</span> &gt;/dev/null
        <span class="hljs-keyword">then</span>
                <span class="hljs-built_in">echo</span> <span class="hljs-string">&quot;Created a new ref, with the following commits:&quot;</span>
                git rev-list --pretty <span class="hljs-string">&quot;<span class="hljs-variable">$nval</span>&quot;</span>
        <span class="hljs-keyword">else</span>
                <span class="hljs-built_in">echo</span> <span class="hljs-string">&quot;New commits:&quot;</span>
                git rev-list --pretty <span class="hljs-string">&quot;<span class="hljs-variable">$nval</span>&quot;</span> <span class="hljs-string">&quot;^<span class="hljs-variable">$oval</span>&quot;</span>
        <span class="hljs-keyword">fi</span> |
        mail -s <span class="hljs-string">&quot;Changes to ref <span class="hljs-variable">$ref</span>&quot;</span> commit-list@mydomain
<span class="hljs-keyword">done</span>
<span class="hljs-comment" title="# log signed push certificate, if any"># &zhcy;&ucy;&rcy;&ncy;&acy;&lcy; &pcy;&ocy;&dcy;&pcy;&icy;&scy;&acy;&ncy;&ncy;&ocy;&gcy;&ocy; push-&scy;&iecy;&rcy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;&acy;, &iecy;&scy;&lcy;&icy; &tcy;&acy;&kcy;&ocy;&vcy;&ocy;&jcy; &icy;&mcy;&iecy;&iecy;&tcy;&scy;&yacy;</span>
<span class="hljs-keyword">if</span> <span class="hljs-built_in">test</span> -n <span class="hljs-string">&quot;<span class="hljs-variable">${GIT_PUSH_CERT-}</span>&quot;</span> &amp;&amp; <span class="hljs-built_in">test</span> <span class="hljs-variable">${GIT_PUSH_CERT_STATUS}</span> = G
<span class="hljs-keyword">then</span>
        (
                <span class="hljs-built_in">echo</span> expected nonce is <span class="hljs-variable">${GIT_PUSH_NONCE}</span>
                git cat-file blob <span class="hljs-variable">${GIT_PUSH_CERT}</span>
        ) | mail -s <span class="hljs-string">&quot;push certificate from <span class="hljs-variable">$GIT_PUSH_CERT_SIGNER</span>&quot;</span> push-log@mydomain
<span class="hljs-keyword">fi</span>
<span class="hljs-built_in">exit</span> 0</pre> </div> </div> <p><span data-i18n="e705b674baf0285f86754d04a48744834ff62082a854fa1f317dd0195257ef2e/27" data-source="The exit code from this hook invocation is ignored, however a non-zero exit code will generate an error message." onmousemove="i18n(this)">&Kcy;&ocy;&dcy; &vcy;&ycy;&khcy;&ocy;&dcy;&acy; &icy;&zcy; &ecy;&tcy;&ocy;&gcy;&ocy; &vcy;&ycy;&zcy;&ocy;&vcy;&acy; &lcy;&ocy;&vcy;&ucy;&shcy;&kcy;&icy; &icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy;, &ocy;&dcy;&ncy;&acy;&kcy;&ocy; &kcy;&ocy;&dcy; &vcy;&ycy;&khcy;&ocy;&dcy;&acy;, &ocy;&tcy;&lcy;&icy;&chcy;&ncy;&ycy;&jcy; &ocy;&tcy; &ncy;&ucy;&lcy;&yacy;, &vcy;&ycy;&dcy;&acy;&scy;&tcy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&iecy; &ocy;&bcy; &ocy;&shcy;&icy;&bcy;&kcy;&iecy;.</span></p> <p><span data-i18n="7b0f39599cbf74cda49ee0b9d207660e04f54be6763a1155ba8f5dddd0581061/b2" data-source="Note that it is possible for refname to not have sha1-new when this hook runs. This can easily occur if another user modifies the ref after it was updated by &lt;code&gt;git-receive-pack&lt;/code&gt;, but before the hook was able to evaluate it. It is recommended that hooks rely on sha1-new rather than the current value of refname." onmousemove="i18n(this)">&Ocy;&bcy;&rcy;&acy;&tcy;&icy;&tcy;&iecy; &vcy;&ncy;&icy;&mcy;&acy;&ncy;&icy;&iecy;, &chcy;&tcy;&ocy; &pcy;&rcy;&icy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&iecy; &ecy;&tcy;&ocy;&gcy;&ocy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&acy; &vcy; refname &mcy;&ocy;&zhcy;&iecy;&tcy; &ncy;&iecy; &bcy;&ycy;&tcy;&softcy; sha1-new. &Ecy;&tcy;&ocy; &mcy;&ocy;&zhcy;&iecy;&tcy; &lcy;&iecy;&gcy;&kcy;&ocy; &pcy;&rcy;&ocy;&icy;&zcy;&ocy;&jcy;&tcy;&icy;, &iecy;&scy;&lcy;&icy; &dcy;&rcy;&ucy;&gcy;&ocy;&jcy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&softcy; &icy;&zcy;&mcy;&iecy;&ncy;&icy;&tcy; &scy;&scy;&ycy;&lcy;&kcy;&ucy; &pcy;&ocy;&scy;&lcy;&iecy; &tcy;&ocy;&gcy;&ocy;, &kcy;&acy;&kcy; &ocy;&ncy;&acy; &bcy;&ycy;&lcy;&acy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&acy; &ZeroWidthSpace;<code>git-receive-pack</code> , &ncy;&ocy; &dcy;&ocy; &tcy;&ocy;&gcy;&ocy;, &kcy;&acy;&kcy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy; &scy;&mcy;&ocy;&gcy; &iecy;&iecy; &ocy;&tscy;&iecy;&ncy;&icy;&tcy;&softcy;. &Rcy;&iecy;&kcy;&ocy;&mcy;&iecy;&ncy;&dcy;&ucy;&iecy;&tcy;&scy;&yacy;, &chcy;&tcy;&ocy;&bcy;&ycy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&icy; &pcy;&ocy;&lcy;&acy;&gcy;&acy;&lcy;&icy;&scy;&softcy; &ncy;&acy; sha1-new, &acy; &ncy;&iecy; &ncy;&acy; &tcy;&iecy;&kcy;&ucy;&shchcy;&iecy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; refname.</span></p> </div> <h2 class="text-body-emphasis"  id="_post_update_hook"><span data-i18n="f73d2e07f19bbd3c6feba4880a03d3110ebb5fe4b4044896cd07a92e9647015d/f1" data-source="Post-update hook" onmousemove="i18n(this)">Post-update hook</span></h2> <div> <p><span data-i18n="86a549a2a728f467963c683b8df907802cb38115dbdfe28fd968b74f3d22d741/b0" data-source="After all other processing, if at least one ref was updated, and if $GIT_DIR/hooks/post-update file exists and is executable, then post-update will be called with the list of refs that have been updated. This can be used to implement any repository wide cleanup tasks." onmousemove="i18n(this)">&Pcy;&ocy;&scy;&lcy;&iecy; &vcy;&scy;&iecy;&jcy; &ocy;&scy;&tcy;&acy;&lcy;&softcy;&ncy;&ocy;&jcy; &ocy;&bcy;&rcy;&acy;&bcy;&ocy;&tcy;&kcy;&icy;, &iecy;&scy;&lcy;&icy; &khcy;&ocy;&tcy;&yacy; &bcy;&ycy; &ocy;&dcy;&ncy;&acy; &scy;&scy;&ycy;&lcy;&kcy;&acy; &bcy;&ycy;&lcy;&acy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&acy; &ZeroWidthSpace;&ZeroWidthSpace;&icy; &iecy;&scy;&lcy;&icy; &fcy;&acy;&jcy;&lcy; $GIT_DIR/hooks/post-update &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &icy; &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &icy;&scy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&mcy;&ycy;&mcy;, &tcy;&ocy; post-update &bcy;&ucy;&dcy;&iecy;&tcy; &vcy;&ycy;&zcy;&vcy;&acy;&ncy; &scy;&ocy; &scy;&pcy;&icy;&scy;&kcy;&ocy;&mcy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&ncy;&ycy;&khcy; &scy;&scy;&ycy;&lcy;&ocy;&kcy;. &Ecy;&tcy;&ocy; &mcy;&ocy;&zhcy;&ncy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &dcy;&lcy;&yacy; &rcy;&iecy;&acy;&lcy;&icy;&zcy;&acy;&tscy;&icy;&icy; &lcy;&yucy;&bcy;&ycy;&khcy; &zcy;&acy;&dcy;&acy;&chcy; &ocy;&chcy;&icy;&scy;&tcy;&kcy;&icy; &vcy;&scy;&iecy;&gcy;&ocy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy;.</span></p> <p><span data-i18n="0a62d513e95cdf0db1c651fe768728ace68075af8459a331974907982b5b6a1e/84" data-source="The exit code from this hook invocation is ignored; the only thing left for &lt;code&gt;git-receive-pack&lt;/code&gt; to do at that point is to exit itself anyway." onmousemove="i18n(this)">&Kcy;&ocy;&dcy; &vcy;&ycy;&khcy;&ocy;&dcy;&acy; &icy;&zcy; &ecy;&tcy;&ocy;&gcy;&ocy; &vcy;&ycy;&zcy;&ocy;&vcy;&acy; &lcy;&ocy;&vcy;&ucy;&shcy;&kcy;&icy; &icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy;; &iecy;&dcy;&icy;&ncy;&scy;&tcy;&vcy;&iecy;&ncy;&ncy;&ocy;&iecy;, &chcy;&tcy;&ocy; &ocy;&scy;&tcy;&acy;&iecy;&tcy;&scy;&yacy; &scy;&dcy;&iecy;&lcy;&acy;&tcy;&softcy;  <code>git-receive-pack</code>  &vcy; &ecy;&tcy;&ocy;&tcy; &mcy;&ocy;&mcy;&iecy;&ncy;&tcy;, &mdash; &ecy;&tcy;&ocy; &vcy;&scy;&iecy; &rcy;&acy;&vcy;&ncy;&ocy; &vcy;&ycy;&jcy;&tcy;&icy; &icy;&zcy; &scy;&iecy;&bcy;&yacy;.</span></p> <p><span data-i18n="42bc3b1b804191661a5d05d3a773182be5f5ab7a2839077d6f851649b3712aa7/7e" data-source="This hook can be used, for example, to run &lt;code&gt;git update-server-info&lt;/code&gt; if the repository is packed and is served via a dumb transport." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &khcy;&ucy;&kcy; &mcy;&ocy;&zhcy;&ncy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy;, &ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &dcy;&lcy;&yacy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;  <code>git update-server-info</code> , &iecy;&scy;&lcy;&icy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&jcy; &ucy;&pcy;&acy;&kcy;&ocy;&vcy;&acy;&ncy; &icy; &ocy;&bcy;&scy;&lcy;&ucy;&zhcy;&icy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &chcy;&iecy;&rcy;&iecy;&zcy; &tcy;&ucy;&pcy;&ocy;&jcy; &tcy;&rcy;&acy;&ncy;&scy;&pcy;&ocy;&rcy;&tcy;.</span></p> <div> <div> <pre class="hljs language-bash"><span class="hljs-meta">#!/bin/sh</span>
<span class="hljs-built_in">exec</span> git update-server-info</pre> </div> </div> </div> <h2 class="text-body-emphasis"  id="_quarantine_environment"><span data-i18n="f9aa86a3fcd93cb2607a7331ef45ccbea9c2a512059313d6fe9a84ae59b002a9/27" data-source="Quarantine environment" onmousemove="i18n(this)">Quarantine environment</span></h2> <div> <p><span data-i18n="8758bca3379599149c2bdb10686503e584884dbaea95ae9c03e446b689fc1c96/b7" data-source="When &lt;code&gt;receive-pack&lt;/code&gt; takes in objects, they are placed into a temporary &amp;quot;quarantine&amp;quot; directory within the &lt;code&gt;$GIT_DIR/objects&lt;/code&gt; directory and migrated into the main object store only after the &lt;code&gt;pre-receive&lt;/code&gt; hook has completed. If the push fails before then, the temporary directory is removed entirely." onmousemove="i18n(this)">&Kcy;&ocy;&gcy;&dcy;&acy;  <code>receive-pack</code>  &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&iecy;&tcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ycy;, &ocy;&ncy;&icy; &pcy;&ocy;&mcy;&iecy;&shchcy;&acy;&yucy;&tcy;&scy;&yacy; &vcy;&ocy; &vcy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ycy;&jcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;  &quot;quarantine&quot;  &vcy;&ncy;&ucy;&tcy;&rcy;&icy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&acy;  <code>$GIT_DIR/objects</code>  &icy; &pcy;&iecy;&rcy;&iecy;&ncy;&ocy;&scy;&yacy;&tcy;&scy;&yacy; &vcy; &ocy;&scy;&ncy;&ocy;&vcy;&ncy;&ocy;&iecy; &khcy;&rcy;&acy;&ncy;&icy;&lcy;&icy;&shchcy;&iecy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ocy;&vcy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &pcy;&ocy;&scy;&lcy;&iecy; &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&iecy;&ncy;&icy;&yacy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&acy;  <code>pre-receive</code> . &IEcy;&scy;&lcy;&icy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&chcy;&acy; &ncy;&iecy; &ucy;&dcy;&acy;&lcy;&acy;&scy;&softcy; &dcy;&ocy; &ecy;&tcy;&ocy;&gcy;&ocy; &mcy;&ocy;&mcy;&iecy;&ncy;&tcy;&acy;, &vcy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ycy;&jcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy; &pcy;&ocy;&lcy;&ncy;&ocy;&scy;&tcy;&softcy;&yucy; &ucy;&dcy;&acy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy;.</span></p> <p><span data-i18n="72c2de4234186a24e6db77c24110c11545892a0567f73bcec26aedde34f27a97/cf" data-source="This has a few user-visible effects and caveats:" onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &icy;&mcy;&iecy;&iecy;&tcy; &ncy;&iecy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ocy; &vcy;&icy;&dcy;&icy;&mcy;&ycy;&khcy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&iecy;&mcy; &ecy;&fcy;&fcy;&iecy;&kcy;&tcy;&ocy;&vcy; &icy; &pcy;&rcy;&iecy;&dcy;&ocy;&scy;&tcy;&iecy;&rcy;&iecy;&zhcy;&iecy;&ncy;&icy;&jcy;:</span></p> <div> <ol> <li> <p><span data-i18n="90c15f1707f4563baf4d6ce379e9bb6b19382e2a843c2f5ca4644b61cea6c56b/ec" data-source="Pushes which fail due to problems with the incoming pack, missing objects, or due to the &lt;code&gt;pre-receive&lt;/code&gt; hook will not leave any on-disk data. This is usually helpful to prevent repeated failed pushes from filling up your disk, but can make debugging more challenging." onmousemove="i18n(this)">Push-&pcy;&iecy;&rcy;&iecy;&dcy;&acy;&chcy;&icy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&icy;&lcy;&icy;&scy;&softcy; &ncy;&iecy;&ucy;&dcy;&acy;&chcy;&ncy;&ocy; &icy;&zcy;-&zcy;&acy; &pcy;&rcy;&ocy;&bcy;&lcy;&iecy;&mcy; &scy; &vcy;&khcy;&ocy;&dcy;&yacy;&shchcy;&icy;&mcy; &pcy;&acy;&kcy;&iecy;&tcy;&ocy;&mcy;, &ocy;&tcy;&scy;&ucy;&tcy;&scy;&tcy;&vcy;&icy;&yacy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ocy;&vcy; &icy;&lcy;&icy; &icy;&zcy;-&zcy;&acy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&acy;  <code>pre-receive</code> , &ncy;&iecy; &ocy;&scy;&tcy;&acy;&vcy;&yacy;&tcy; &ncy;&icy;&kcy;&acy;&kcy;&icy;&khcy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy; &ncy;&acy; &dcy;&icy;&scy;&kcy;&iecy;. &Ocy;&bcy;&ycy;&chcy;&ncy;&ocy; &ecy;&tcy;&ocy; &pcy;&ocy;&mcy;&ocy;&gcy;&acy;&iecy;&tcy; &pcy;&rcy;&iecy;&dcy;&ocy;&tcy;&vcy;&rcy;&acy;&tcy;&icy;&tcy;&softcy; &zcy;&acy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&iecy; &dcy;&icy;&scy;&kcy;&acy; &pcy;&ocy;&vcy;&tcy;&ocy;&rcy;&ncy;&ycy;&mcy;&icy; &ncy;&iecy;&ucy;&dcy;&acy;&chcy;&ncy;&ycy;&mcy;&icy; &pcy;&ocy;&pcy;&ycy;&tcy;&kcy;&acy;&mcy;&icy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&kcy;&icy;, &ncy;&ocy; &mcy;&ocy;&zhcy;&iecy;&tcy; &ucy;&scy;&lcy;&ocy;&zhcy;&ncy;&icy;&tcy;&softcy; &ocy;&tcy;&lcy;&acy;&dcy;&kcy;&ucy;.</span></p> </li> <li> <p><span data-i18n="3b40bd4f430b363c3c141b97c95edc8007037e05e9454d14416cac04d982b4c8/a8" data-source="Any objects created by the &lt;code&gt;pre-receive&lt;/code&gt; hook will be created in the quarantine directory (and migrated only if it succeeds)." onmousemove="i18n(this)">&Lcy;&yucy;&bcy;&ycy;&iecy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ycy;, &scy;&ocy;&zcy;&dcy;&acy;&ncy;&ncy;&ycy;&iecy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&ocy;&mcy;  <code>pre-receive</code> , &bcy;&ucy;&dcy;&ucy;&tcy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&ycy; &vcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&iecy; &kcy;&acy;&rcy;&acy;&ncy;&tcy;&icy;&ncy;&acy; (&icy; &pcy;&iecy;&rcy;&iecy;&ncy;&iecy;&scy;&iecy;&ncy;&ycy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &vcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy; &ucy;&scy;&pcy;&iecy;&khcy;&acy;).</span></p> </li> <li> <p><span data-i18n="c7b2e2dfaa3a0827515d722d114b55f9a55574421c650e4fe1fe54b479f74792/b3" data-source="The &lt;code&gt;pre-receive&lt;/code&gt; hook MUST NOT update any refs to point to quarantined objects. Other programs accessing the repository will not be able to see the objects (and if the pre-receive hook fails, those refs would become corrupted). For safety, any ref updates from within &lt;code&gt;pre-receive&lt;/code&gt; are automatically rejected." onmousemove="i18n(this)">&Pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;  <code>pre-receive</code>  &Ncy;&IEcy; &Dcy;&Ocy;&Lcy;&ZHcy;&IEcy;&Ncy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&yacy;&tcy;&softcy; &kcy;&acy;&kcy;&icy;&iecy;-&lcy;&icy;&bcy;&ocy; &scy;&scy;&ycy;&lcy;&kcy;&icy;, &chcy;&tcy;&ocy;&bcy;&ycy; &ocy;&ncy;&icy; &ucy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&lcy;&icy; &ncy;&acy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ycy;, &pcy;&ocy;&mcy;&iecy;&shchcy;&iecy;&ncy;&ncy;&ycy;&iecy; &vcy; &kcy;&acy;&rcy;&acy;&ncy;&tcy;&icy;&ncy;. &Dcy;&rcy;&ucy;&gcy;&icy;&iecy; &pcy;&rcy;&ocy;&gcy;&rcy;&acy;&mcy;&mcy;&ycy;, &ocy;&bcy;&rcy;&acy;&shchcy;&acy;&yucy;&shchcy;&icy;&iecy;&scy;&yacy; &kcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yucy;, &ncy;&iecy; &scy;&mcy;&ocy;&gcy;&ucy;&tcy; &vcy;&icy;&dcy;&iecy;&tcy;&softcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ycy; (&icy; &iecy;&scy;&lcy;&icy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy; &pcy;&rcy;&iecy;&dcy;&vcy;&acy;&rcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&gcy;&ocy; &pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&icy;&yacy; &ncy;&iecy; &ucy;&dcy;&acy;&scy;&tcy;&scy;&yacy;, &ecy;&tcy;&icy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &bcy;&ucy;&dcy;&ucy;&tcy; &pcy;&ocy;&vcy;&rcy;&iecy;&zhcy;&dcy;&iecy;&ncy;&ycy;). &Vcy; &tscy;&iecy;&lcy;&yacy;&khcy; &bcy;&iecy;&zcy;&ocy;&pcy;&acy;&scy;&ncy;&ocy;&scy;&tcy;&icy; &lcy;&yucy;&bcy;&ycy;&iecy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &scy;&scy;&ycy;&lcy;&ocy;&kcy; &icy;&zcy;&ncy;&ucy;&tcy;&rcy;&icy;  <code>pre-receive</code>  &acy;&vcy;&tcy;&ocy;&mcy;&acy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&icy; &ocy;&tcy;&kcy;&lcy;&ocy;&ncy;&yacy;&yucy;&tcy;&scy;&yacy;.</span></p> </li> </ol> </div> </div> <h2 class="text-body-emphasis"  id="_see_also"><span data-i18n="2fa97693b70fa87b95b2d1bdf9558e4ac65d5e82d145f13a03849c4d9c4957a9/40" data-source="See also" onmousemove="i18n(this)">See also</span></h2> <div> <p><span data-i18n="e519f7b37576bbfeaceee0c6cbfb468f17da4528e416bdc64da13e4e8ba26805/ce" data-source="&lt;a href=&quot;git-send-pack&quot;&gt;git-send-pack[1]&lt;/a&gt;, &lt;a href=&quot;gitnamespaces&quot;&gt;gitnamespaces[7]&lt;/a&gt;" onmousemove="i18n(this)"><a href="git-send-pack.html">git-send-pack[1]</a>, <a href="gitnamespaces.html">gitnamespaces[7]</a></span></p> </div><address>
<p>
    &copy; 2012&ndash;2024 Scott Chacon and others<br/>Licensed under the MIT License.<br/>
<a href="https://git-scm.com/docs/git-receive-pack">https://git-scm.com/docs/git-receive-pack</a>
</p>
</address>                </article>
            </main>

            <br>
            <br>
            <hr>

                            <ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-6424571640879890"
     data-ad-slot="3954319254"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>            
        </div>

        <!-- -->

        <div class="col-md-3">
            <br>
            <form action="-index-.html">
                <div class="input-group">
                    <input class="form-control" type="search" name="q" placeholder="Search for Git" required>
                    <button class="btn btn-primary" type="submit">
                        <i class="bi bi-search"></i>
                    </button>
                </div>
            </form>
            <br>

                            <div class="list-group list-group-flush">
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-reflog.html">
                            git reflog                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-remote.html">
                            git remote                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-remote-ext.html">
                            git remote-ext                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-remote-fd.html">
                            git remote-fd                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-repack.html">
                            git repack                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-replace.html">
                            git replace                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-request-pull.html">
                            git request-pull                        </a>
                                    </div>
            
            <br>
            <div class="my-3">
                   <ins class="adsbygoogle"
        style="display:block; text-align:center;"
        data-ad-layout="in-article"
        data-ad-format="fluid"
        data-ad-client="ca-pub-6424571640879890"
        data-ad-slot="3777011170"></ins>
<script>
    (adsbygoogle = window.adsbygoogle || []).push({});
</script>            </div>
            <br>

            
            
        </div>
    </div>
</div>    <!--/sse-->

    <footer>
        <br>
        <div class="container">
            <div class="row">
                <div class="col">
                    <hr>
                    <div class="row">
                        <div class="col-md-10">
                            <ul class="nav">
                                <li class="nav-item">
                                    <a class="nav-link ps-0" href="https://runebook.dev/">Help us Improve Translation</a>
                                </li>
                                                            </ul>
                        </div>
                        <div class="col-md-2 text-end">
                            <a href="git-receive-pack.html#" class="fs-5" aria-label="Top">
                                <i class="bi bi-arrow-up-square-fill"></i>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <br>
    </footer>
    <script src="../../../runebook.js"></script>
</body>

</html>